Skip to content

Visual refresh: gradient wheel, merged spin button, confetti + shareable winner card - #4

Merged
trent-howard merged 1 commit into
trent-howard:mainfrom
benjigreig-kal:visual-refresh
Oct 4, 2026
Merged

trent-howard merged 1 commit into
trent-howard:mainfrom
benjigreig-kal:visual-refresh

Conversation

@benjigreig-kal

Copy link
Copy Markdown
Contributor

Summary

  • Render each wedge as a radial gradient (lighter near the hub, full accent colour at the rim) instead of a flat fill, using the existing Catppuccin Mocha palette.
  • Replace the separate centre hub + edge pointer with a single merged SVG button: the circle and its flag/pointer toward 3 o'clock are one continuous outlined shape (no seam), and it still triggers the spin on click. The bottom "Spin" pill button remains as a second, keyboard-friendly trigger.
  • Celebrate the result with a confetti burst and an animated, dismissible winner card (closable via an × button, re-triggers its pop-in animation on every spin).
  • Add a "Copy image" action on the winner card that renders a shareable PNG (wheel snapshot + big winner name, sized to stay readable at chat-thumbnail scale) and copies it to the clipboard, falling back to a file download if the Clipboard API isn't available.

Notes for review

  • The wheel's win-detection logic (getWinner(), angle 0 = 3 o'clock) is untouched — only the visuals around it changed.
  • The hub button's whole shape is one <path> (circle + flag) so there's no visible seam between the two; the share-card draws an equivalent shape via Canvas for visual consistency (no "SPIN" text on the static card).
  • Clipboard-write support/permissions vary by browser; the fallback (auto-download) was exercised and works.

Generated with Claude

…nd shareable winner card

- Render each wedge as a radial gradient (lighter near the hub, full
  accent colour at the rim) instead of a flat fill.
- Replace the separate centre hub and edge pointer with a single
  merged SVG hub button - the circle and its flag/pointer are one
  continuous outlined shape, still spins the wheel on click.
- Celebrate the result with a confetti burst and an animated,
  dismissible winner card.
- Add a "Copy image" action that renders a shareable PNG card of the
  winner (wheel snapshot + big name), copying it to the clipboard with
  a download fallback when the Clipboard API isn't available.

Generated with Claude

@trent-howard trent-howard left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome, thanks Benji!

@trent-howard
trent-howard merged commit 9391db5 into trent-howard:main Oct 4, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants